package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.PageNavigationTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class PageNavigationTabService implements
		BaseInterface<PageNavigationTab> {
	private static final Logger log = LoggerFactory
			.getLogger(PageNavigationTabService.class);
//	private BaseDao<PageNavigationTab> pageNavigationTabDao = SpringBeanFactory.pageNavigationTabDao;
	private BaseDao<PageNavigationTab> pageNavigationTabDao;
	
	public PageNavigationTab get(Integer id) throws Exception {
		return pageNavigationTabDao.get(id);
	}

	public List<PageNavigationTab> getAll() throws Exception {
		return pageNavigationTabDao.getAll();
	}

	public PageNavigationTab get(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public List<PageNavigationTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(PageNavigationTab obj) throws Exception {

	}

	public void update(PageNavigationTab obj) throws Exception {

	}

	public void delete(PageNavigationTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<PageNavigationTab> hqlGetList(String hql,
			Map<String, Object> argsMap) throws Exception {
		return pageNavigationTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		pageNavigationTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return pageNavigationTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<PageNavigationTab> sqlGetList(String sqls,
			Map<String, Object> argsMap) throws Exception {
		return pageNavigationTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		pageNavigationTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return pageNavigationTabDao.sqlGetNum(sqls, argsMap);
	}
	//Setter
	public void setPageNavigationTabDao(
			BaseDao<PageNavigationTab> pageNavigationTabDao) {
		this.pageNavigationTabDao = pageNavigationTabDao;
	}
	
}